package com.fortune.dto.in.producePriceManagement;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

public class EditPriceDealerDto {
    @NotBlank(message="经销商ID不能为空")
    @ApiModelProperty(required=true, example="经销商ID")
    private String dealerId;
    @NotBlank(message="商品ID不能为空")
    @ApiModelProperty(required=true, example="商品ID")
    private String produceId;
    @NotNull(message="优惠批发价不能为空")
    @ApiModelProperty(required=true, example="优惠批发价")
    private BigDecimal price;

    @Override
    public String toString() {
        return "EditPriceDealerDto{" +
                "dealerId='" + dealerId + '\'' +
                ", produceId='" + produceId + '\'' +
                ", price=" + price +
                '}';
    }

    public String getDealerId() {
        return dealerId;
    }

    public void setDealerId(String dealerId) {
        this.dealerId = dealerId;
    }

    public String getProduceId() {
        return produceId;
    }

    public void setProduceId(String produceId) {
        this.produceId = produceId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
